<template>
	<view class="msgpage">
		<view class="titleline">
			<view class="titlebox">
				<view class="iconfont icon-xindong1">
					
				</view>
				<view class="titlename">
				关注我的
				</view>
			</view>
			<view class="titlebtn" @click="yaoqing">
				邀请关注
			</view>
		</view>
		<view class="gongzhongbox">
			
			<view class="msgline" >
				<view class="imgbox">
					<image src="https://changban.dianjingkeji.net/img/微信图片_20230817153730.jpg" mode=""></image>
				</view>
				<view class="lebelbox">
					<view class="label">
						姑父
					</view>
					<view class="time">
						已关注我的健康进程
					</view>
				</view>
				<view class="typebox">
					<view class="day">
						123天
					</view>
					<view class="out" @click="jiechu">
						解除关联
					</view>
				</view>
				
				
			</view>
			<view class="msgline">
				<view class="imgbox">
					<image src="https://changban.dianjingkeji.net/img/微信图片_20230817153730.jpg" mode=""></image>
				</view>
				<view class="lebelbox">
					<view class="label">
						大姨
					</view>
					<view class="time">
						已关注我的健康进程
					</view>
				</view>
				<view class="typebox">
					<view class="day">
						123天
					</view>
					<view class="out" @click="jiechu">
						解除关联
					</view>
				</view>
				
				
			</view>
			
		</view>
		<view class="titleline">
			<view class="titlebox">
				<view class="iconfont icon-fuwu">
					
				</view>
				<view class="titlename">
					我关注的
				</view>
			</view>
			<view class="lookmore">
				查看更多
			</view>
		</view>
		<view class="listbox">
			<view class="itemlist" >
				<view class="imgbox">
					<image src="https://changban.dianjingkeji.net/img/微信图片_20230817153730.jpg" mode=""></image>
				</view>
				<view class="infobox">
					<view class="infoname">
						老妈
					</view>
					<view class="content">
						已关注健康进程
					</view>
				</view>
				<view class="time">
					200天
				</view>
			</view>
		</view>
		
		
		
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			yaoqing(){
				uni.navigateTo({
					url:'/pagesB/friend/friend'
				})
			},
		jiechu(){
			uni.showModal({
				title: '解除关联后',
				content: '亲友将无法查看您的数据',
				success: function (res) {
					if (res.confirm) {
						console.log('用户点击确定');
					} else if (res.cancel) {
						console.log('用户点击取消');
					}
				}
			});

		},
		}
	}
</script>

<style lang="less" scoped>
	.msgpage{
		width: 750rpx;
		background-color: whitesmoke;
        box-sizing: border-box;
		padding: 20rpx 20rpx 150rpx 20rpx;
		
		
		.titleline{
			
			display: flex;
			align-items: center;
			justify-content: space-between;
			color: #1a4f8a;
			box-sizing: border-box;
			margin: 20rpx;
			.titlebox{
				display: flex;
				align-items: center;
				font-size: 38rpx;
				font-weight: bold;
				.iconfont{
					font-size: 50rpx;
					margin-right: 20rpx;
				}
			}
			.titlebtn{
				font-weight: bold;
				color: white;
				background-color: #1a4f8a;
				font-size: 28rpx;
				border-radius: 16rpx;
				padding: 12rpx 20rpx;
			}
			.lookmore{
				font-weight: bold;
			}
			
		}
		.gongzhongbox{
			width: 100%;
			box-sizing: border-box;
			border-radius: 20rpx;
			padding: 20rpx;
			background-color: white;
			box-shadow: 0 0 10rpx rgba(0,0,0,0.1); /* x偏移 y偏移 模糊 半径 颜色 */
			.msgline{
				display: flex;
				width: 100%;
				align-items: center;
			    justify-content: space-between;
				margin-bottom: 16rpx;
				padding: 20rpx  8rpx;
			.imgbox{
				width: 100rpx;
				height: 100rpx;
				border-radius: 50%;
				image{
					width: 100%;
					height: 100%;
					border-radius: 50%;
				}
			}
				.lebelbox{
					width: 60%;
				line-height: 2;
					.label{
						font-weight: bold;
						font-size: 36rpx;
					}
				}
				.typebox{
					width: 110rpx;
					text-align: center;
					line-height: 2.2;
					.day{
						font-size: 28rpx;
					}
					.out{
						width: 100%;
						background-color: #FF2E00 ;
						color: white;
						border-radius: 10rpx;
						height: 40rpx;
						font-size: 24rpx;
						line-height: 40rpx;
					}
				}
		
			}
		}
		.listbox{
			width: 100%;
			box-sizing: border-box;
			border-radius: 20rpx;
			padding: 20rpx;
			background-color: white;
			box-shadow: 0 0 10rpx rgba(0,0,0,0.1); /* x偏移 y偏移 模糊 半径 颜色 */
			.itemlist{
				display: flex;
				width: 100%;
				align-items: center;
				justify-content: space-between;
				margin-bottom: 16rpx;
				padding: 20rpx  8rpx;
				.imgbox{
					width: 100rpx;
					height: 100rpx;
					border-radius: 50%;
					image{
						width: 100%;
						height: 100%;
						border-radius: 50%;
					}
				}
				.infobox{
					width: 50%;
					line-height: 1.8;
					.infoname{
						font-weight: bold;
						font-size: 36rpx;
					}
					.content{
						width: 100%;
						
						  white-space: nowrap;        /* 强制不换行 */
						  overflow: hidden;           /* 超出隐藏 */
						  text-overflow: ellipsis;    /* 溢出用省略号替代 */
						  display: inline-block;      /* 或者 block/flex */
						  max-width: 200px;    
								 font-size: 28rpx;/* 必须要有宽度限制 */
								 font-weight: bold;
					}
					
				}
				.time{
					font-size: 28rpx;/* 必须要有宽度限制 */
					font-weight: bold;
				}
			}
		}
		
		

	}

</style>
